export default class apiConfig{
  public readonly full:string         //全名
  public readonly short:string        //简化名称
  public readonly description:string  //描述
  public readonly type:string         //类型
  public readonly args: {description:string,key:string}[] //参数列表

  /**
   * @param full 全名
   * @param description 描述
   * @param type 类型
   * @param args 参数列表
   */
  constructor(full:string,description:string,type:string,args?:{description:string,key:string}[]) {
    this.full = full
    this.description = description
    this.type = type
    let arr = full.split(".")
    this.short = arr.shift() +"."+ arr.pop()
    if(this.args===undefined || this.args === null){
      this.args = []
    }else{
      this.args = args
    }
  }

}

